export interface IRoomGoods {
  id?: number;
  bkRoomType?: number | null;
  bkNo?: string | null;
  title?: string | null;
  oldprice?: string | null;
  buildingSize?: string | null;
  roomType?: string | null;
  roomFloor?: string | null;
  buildingType?: string | null;
  ladderhousehold?: string | null;
  floorStructure?: string | null;
  roomTowards?: string | null;
  roomFitment?: string | null;
  listingTime?: Date | null;
  lastTradeTime?: Date | null;
  roomAgeLimit?: string | null;
  roomMortgage?: string | null;
  roomTransactionOwnership?: string | null;
  roomUser?: string | null;
  roomPropertyRights?: string | null;
  roomSpareParts?: string | null;
  focusNo?: string | null;
  characteristic?: string | null;
  roomSellPoint?: string | null;
  communityIntroduction?: string | null;
  roomIntroduction?: string | null;
  surroundingFacilities?: string | null;
  transportation?: string | null;
  roomBroker?: number | null;
  selling?: boolean | null;
}

export class RoomGoods implements IRoomGoods {
  constructor(
    public id?: number,
    public bkRoomType?: number | null,
    public bkNo?: string | null,
    public title?: string | null,
    public oldprice?: string | null,
    public buildingSize?: string | null,
    public roomType?: string | null,
    public roomFloor?: string | null,
    public buildingType?: string | null,
    public ladderhousehold?: string | null,
    public floorStructure?: string | null,
    public roomTowards?: string | null,
    public roomFitment?: string | null,
    public listingTime?: Date | null,
    public lastTradeTime?: Date | null,
    public roomAgeLimit?: string | null,
    public roomMortgage?: string | null,
    public roomTransactionOwnership?: string | null,
    public roomUser?: string | null,
    public roomPropertyRights?: string | null,
    public roomSpareParts?: string | null,
    public focusNo?: string | null,
    public characteristic?: string | null,
    public roomSellPoint?: string | null,
    public communityIntroduction?: string | null,
    public roomIntroduction?: string | null,
    public surroundingFacilities?: string | null,
    public transportation?: string | null,
    public roomBroker?: number | null,
    public selling?: boolean | null
  ) {
    this.selling = this.selling ?? false;
  }
}
